home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_21011.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  49 lines

  1. -- card: 21011 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: sortItems
  6.  
  7.  
  8. -- part contents for background part 10
  9. ----- text -----
  10. 10
  11.  
  12. -- part contents for background part 5
  13. ----- text -----
  14. sortItems
  15.  
  16. -- part contents for background part 6
  17. ----- text -----
  18.  
  19. This  will sort  the items in a HyperCard field.  As you know an item is any number of characters separated by commas.  This XFCN will put them into ascending or descending order, and optionally put each item on a separate line.
  20.  
  21. Marvin G. Nelsen
  22. 20462 Castle Rock Cir.
  23. Huntington Beach CA. 92646
  24.  
  25. GENIE: M.NELSEN
  26.  
  27. -- part contents for background part 7
  28. ----- text -----
  29. Syntax:
  30.  
  31. SortItems(<input>, [<Lines>][,
  32. "DE"])
  33.  
  34. The function returns a sorted list.
  35.  
  36.  
  37. input:  Any HyperCard Container
  38.  
  39. Lines: "true" means put each sorted item into a separate line.
  40. "false" means put all sorted items
  41. into one line. (Default)
  42.  
  43. Descending:  "DE" forces the sort to be in descending order.
  44.  
  45. Example:
  46. put SortItems(input,true) into output
  47.  
  48. output may be the same container as input.
  49. The sort is Case Insensitive.